<template>
    <div class="mui-content" :class="background">
        <div class=" mui-icon mui-icon-arrowleft mui-text-center" @click="goTo" :class="color1"></div>
        <div  class="title " >{{title}}</div>
        <!-- <div  class="title2 ">{{text}}</div> -->

    </div>
</template>

<script>
    export default {
        name: "head2.vue",
        props:{
            title:String,
            text:String,
            background:String,
            color1:String
        },
        methods:{
            goTo(){
                this.$emit('goBack')
            }
        }
    }
</script>

<style scoped>
    .mui-content{
        display: flex;
        width: 100%;
        height: 55px;
        line-height: 55px;
        background-color: white;

    }
    .background{
    background-color: rgba(93, 194, 240, 1);
    color:white;
    }

    .mui-content .mui-icon{
        display: inline-block;
        width: 14%;
        height: 55px;
        line-height: 55px;
      color: rgba(93, 194, 240, 1);

    }
    .mui-content .title{
        display: inline-block;
        width: 85%;
    }
    /* .mui-content .title2{
        display: inline-block;
        width: 15%;
    } */
    .mui-content  .color1{
      color: white;
    }

</style>
